<% content_for :calendar do %>
<%=
calendar({:year => Time.now.year, :month => Time.now.month}) do |d|
  cell_text = "#{d.mday}<br />"
  cell_attrs = {:class => 'day'}
  @all_events.each do |e|
    if e.date == d
#      cell_text << e.title << "<br />"
      cell_text = "#{link_to(d.mday, :action => 'index', :date => e.date)}"
      cell_attrs[:class] = 'specialDay'
    end
  end
  [cell_text, cell_attrs]
end
%>
<% end %>
